package itsos.dao;

import org.springframework.orm.ibatis.support.*;
import itsos.model.*;


public class CodeDetailDao extends SqlMapClientDaoSupport {

	public CodeDetail getCodeDetailByCodeID(long codeID)
	{
		return (CodeDetail) getSqlMapClientTemplate().queryForObject("CodeDetail.getCodeDeatilByCodeID", codeID);
	}
	
	public void insertCodeDetail(CodeDetail codeDetail)
	{
		getSqlMapClientTemplate().insert("CodeDetail.insertCodeDetail", codeDetail);
	}
	
	public void updateCodeDetail(CodeDetail codeDetail)
	{
		getSqlMapClientTemplate().update("CodeDetail.updateCodeDetail", codeDetail);
	}
	
	
}
